import request from '@/utils/request'

const client_id = 'web'
const client_secret = '123456'
const grant_type = 'password'
const scope = 'server'



// 注册方法
export function register(data) {
  return request({
    url: '/api-user/users/registerAccount',
    method: 'post',
    data
  })
}

// 获取验证码
export function sendValidCode(data) {
  return request({
    url: '/api-user/users/sendValidCode',
    method: 'post',
    data
  })
}

// 校验验证码
export function checkCode(data) {
    return request({
        url: '/api-user/users/checkCode',
        method: 'post',
        data: data
    })
}
